package com.ptszyxx.popose.module.main.user.adapter;

import androidx.annotation.NonNull;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder;
import com.ptszyxx.popose.R;
import com.ptszyxx.popose.databinding.ItemUserGiftBinding;
import com.ysg.http.data.entity.user.GiftEntity;

public class UserGiftAdapter extends BaseQuickAdapter<GiftEntity, BaseDataBindingHolder<ItemUserGiftBinding>> {

    private Presenter mPresenter = new Presenter();

    public UserGiftAdapter() {
        super(R.layout.item_user_gift);
    }

    @Override
    protected void convert(@NonNull BaseDataBindingHolder<ItemUserGiftBinding> holder, GiftEntity item) {
        ItemUserGiftBinding binding = holder.getDataBinding();
        if (binding != null) {
            binding.setEntity(item);
            binding.executePendingBindings();
        }
    }

    public static class Presenter{
    }








}
